/*
 * Created on Nov 27, 2007
 * 
 */

package com.probiz.estore.webapp.action;

public class ImageConf {
	private boolean	autoScaleImage	= true;
	private boolean	autoWatermark	= false;
	private String	category;
	private int		height;
	private int		padding;
	private String	suffix;
	private int		width;

	public String getCategory() {
		return category;
	}

	public int getHeight() {
		return height;
	}

	public int getPadding() {
		return padding;
	}

	public String getSuffix() {
		return suffix;
	}

	public int getWidth() {
		return width;
	}

	public boolean isAutoScaleImage() {
		return autoScaleImage;
	}

	public boolean isAutoWatermark() {
		return autoWatermark;
	}

	public void setAutoScaleImage(boolean autoScaleImage) {
		this.autoScaleImage = autoScaleImage;
	}

	/**
	 * 目前只能设置是否使用水印功能，不能很具体的控制用什么图片和文字及大小等。可以做到但比较难做好，而且用户很容易配置错误，所以最好是实施的时候设置正确不让客户改。
	 * 小图建议不要加水印，否则用文字只能看到部分；用图片会抛错。
	 * 
	 * @param autoWatermark
	 */
	public void setAutoWatermark(boolean autoWatermark) {
		this.autoWatermark = autoWatermark;
	}

	public void setCategory(String category) {
		this.category = category;
	}

	public void setHeight(int height) {
		this.height = height;
	}

	public void setPadding(int padding) {
		this.padding = padding;
	}

	public void setSuffix(String suffix) {
		this.suffix = suffix;
	}

	public void setWidth(int width) {
		this.width = width;
	}
}
